import request from '@/utils/request'

// 查询企业基本信息列表
export function listInfo(query) {
  return request({
    url: '/enterprise/info/list',
    method: 'get',
    params: query
  })
}

// 查询企业基本信息详细
export function getInfo(epId) {
  return request({
    url: '/enterprise/info/' + epId,
    method: 'get'
  })
}

// 新增企业基本信息
export function addInfo(data) {
  return request({
    url: '/enterprise/info',
    method: 'post',
    data: data
  })
}

// 修改企业基本信息
export function updateInfo(data) {
  return request({
    url: '/enterprise/info',
    method: 'put',
    data: data
  })
}

// 删除企业基本信息
export function delInfo(epId) {
  return request({
    url: '/enterprise/info/' + epId,
    method: 'delete'
  })
}

// 导出企业基本信息
export function exportInfo(query) {
  return request({
    url: '/enterprise/info/export',
    method: 'get',
    params: query
  })
}


// 行业数据返回
export function getndustry(query) {
  return request({
    url: '/common/industry',
    method: 'get',
    params: query
  })
}

// 无权限 企业列表
export function listInfo_common(query) {
  return request({
    url: '/common/enterprise/list',
    headers: {
      isToken: false
    },
    method: 'get',
    params: query
  })
}

// 下载用户导入模板
export function importTemplate() {
  return request({
    url: '/enterprise/info/importTemplate',
    method: 'get'
  })
}
// 当前登录用户获取企业基本信息详细信息
export function InfoItem(usename) {
  return request({
    url: '/common/getEpByUser?epUserName=' + usename,
    headers: {
      isToken: false
    },
    method: 'get',
  })
}

// 无权限 企业基本信息详细
export function getInfo_common(epId) {
  return request({
    url: '/common/enterprise/' + epId,
    headers: {
      isToken: false
    },
    method: 'get'
  })
}



/** 首页请求数据 开始*/

export function sewagePermit(query) {
  return request({
    url: '/common/enterprise/sewagePermit',
    headers: {
      isToken: false
    },
    method: 'get',
    params: query
  })
}

export function projectConstruction(query) {
  return request({
    url: '/common/enterprise/projectConstruction',
    headers: {
      isToken: false
    },
    method: 'get',
    params: query
  })
}

export function productionProcess(query) {
  return request({
    url: '/common/enterprise/productionProcess',
    headers: {
      isToken: false
    },
    method: 'get',
    params: query
  })
}

export function tfGasgc(query) {
  return request({
    url: '/common/enterprise/tfGasgc',
    headers: {
      isToken: false
    },
    method: 'get',
    params: query
  })
}

export function tfNoisegc(query) {
  return request({
    url: '/common/enterprise/tfNoisegc',
    headers: {
      isToken: false
    },
    method: 'get',
    params: query
  })
}

export function tfWatergc(query) {
  return request({
    url: '/common/enterprise/tfWatergc',
    headers: {
      isToken: false
    },
    method: 'get',
    params: query
  })
}

export function outletExhaust(query) {
  return request({
    url: '/common/enterprise/outletExhaust',
    headers: {
      isToken: false
    },
    method: 'get',
    params: query
  })
}

export function outletNoise(query) {
  return request({
    url: '/common/enterprise/outletNoise',
    headers: {
      isToken: false
    },
    method: 'get',
    params: query
  })
}

export function outletSolid(query) {
  return request({
    url: '/common/enterprise/outletSolid',
    headers: {
      isToken: false
    },
    method: 'get',
    params: query
  })
}

export function outletWater(query) {
  return request({
    url: '/common/enterprise/outletWater',
    headers: {
      isToken: false
    },
    method: 'get',
    params: query
  })
}

export function chemicalHandling(query) {
  return request({
    url: '/common/enterprise/chemicalHandling',
    headers: {
      isToken: false
    },
    method: 'get',
    params: query
  })
}

export function emergencyRescue(query) {
  return request({
    url: '/common/enterprise/emergencyRescue',
    headers: {
      isToken: false
    },
    method: 'get',
    params: query
  })
}

export function riskPreSys(query) {
  return request({
    url: '/common/enterprise/riskPreSys',
    headers: {
      isToken: false
    },
    method: 'get',
    params: query
  })
}

export function riskUnit(query) {
  return request({
    url: '/common/enterprise/riskUnit',
    headers: {
      isToken: false
    },
    method: 'get',
    params: query
  })
}

export function surroundingEnv(query) {
  return request({
    url: '/common/enterprise/surroundingEnv',
    headers: {
      isToken: false
    },
    method: 'get',
    params: query
  })
}
/** 首页请求数据 结束*/

export function largeOne() {
  return request({
    url: '/common/largeOne',
    headers: {
      isToken: false
    },
    method: 'get',
  })
}

export function largeTwo() {
  return request({
    url: '/common/largeTwo',
    headers: {
      isToken: false
    },
    method: 'get',
  })
}





